﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="~/Content/bootstrap.min.css">

    <!-- 可选的Bootstrap主题文件（一般不用引入） -->
    <link rel="stylesheet" href="~/Content/bootstrap-theme.min.css">

    <title>牛人网接口帮助文档</title>
    <style>
        .highlight {
            background-color: yellow;
        }
    </style>
</head>
<body style="padding-top: 70px;">
    <nav class="navbar navbar-default navbar-fixed-top">
        <div class="container">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="/">牛人网</a>
            </div>
            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">基础<span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#one_one">登录</a></li>
                            <li><a href="#one_two">注册</a></li>
                            <li><a href="#one-three">注册信息完善</a></li>
                            <li><a href="#one-four">浏览记录列表</a></li>
                            <li><a href="#one-five">浏览记录删除</a></li>
                            <li><a href="#one-six">生成验证码</a></li>
                            <li><a href="#one-seven">发送手机验证码</a></li>
                            <li><a href="#one-eight">手机注册</a></li>
                            <li><a href="#one-nine">评论展示</a></li>
                            <li><a href="#one-ten">展示点赞</a></li>
                            <li><a href="#one-eleven">展示收藏</a></li>
                            <li><a href="#three-twelve">收藏列表</a></li>
                            <li><a href="#three-thirteen">收藏删除</a></li>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">牛人基础<span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#two-one">牛人列表</a></li>
                            <li><a href="#two-two">牛人信息显示</a></li>
                            <li><a href="#two-three">牛人信息修改</a></li>
                            <li><a href="#two-four">牛人密码修改</a></li>
                            <li><a href="#two-five">牛人头像修改</a></li>
                            <li><a href="#two-six">牛人头像显示</a></li>
                            <li><a href="#two-seven">牛人积分明细</a></li>
                            <li><a href="#two-eight">牛人金钱明细</a></li>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">商家<span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#three-one">商家列表</a></li>
                            <li><a href="#three-two">商家信息显示</a></li>
                            <li><a href="#three-three">商家信息修改</a></li>
                            <li><a href="#three-four">商家密码修改</a></li>
                            <li><a href="#three-five">商家宣传图片列表</a></li>
                            <li><a href="#three-six">商家宣传图片上传</a></li>
                            <li><a href="#three-seven">商家宣传图片删除</a></li>
                            <li><a href="#three-eight">商家头像修改</a></li>
                            <li><a href="#three-nine">商家显示头像</a></li>
                            <li><a href="#three-ten">商家新增产品</a></li>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">牛棚<span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#four-one">牛棚列表</a></li>
                            <li><a href="#four-two">牛棚信息显示</a></li>
                            <li><a href="#four-three">牛棚信息修改</a></li>
                            <li><a href="#four-four">牛棚密码修改</a></li>
                            <li><a href="#four-five">牛棚宣传图片列表</a></li>
                            <li><a href="#four-six">牛棚宣传图片上传</a></li>
                            <li><a href="#four-secen">牛棚宣传图片删除</a></li>
                            <li><a href="#four-eight">牛棚头像修改</a></li>
                            <li><a href="#four-nine">牛棚显示头像</a></li>
                            <li><a href="#four-ten">牛棚新增牛人</a></li>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">商品<span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#five-one">商品列表</a></li>
                            <li><a href="#five-two">商品信息显示</a></li>
                            <li><a href="#five-three">商品信息修改</a></li>
                            <li><a href="#five-four">商品图片列表</a></li>
                            <li><a href="#five-five">商品图片上传</a></li>
                            <li><a href="#five-six">商品图片删除</a></li>
                        </ul>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">论坛<span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#six-one">主题列表</a></li>
                            <li><a href="#six-two">热门主题列表</a></li>
                            <li><a href="#six-three">推荐主题列表</a></li>
                            <li><a href="#six-four">热门板块列表</a></li>
                            <li><a href="#six-five">推荐板块列表</a></li>
                            <li><a href="#six-six">新建主题</a></li>
                            <li><a href="#six-seven">评论主题</a></li>
                            <li><a href="#six-eight">回复评论</a></li>
                        </ul>
                    </li>
                </ul>
                <form class="navbar-form navbar-left" role="search">
                    <div class="form-group">
                        <input type="text" id="searchstr" class="form-control" placeholder="Search">
                    </div>
                    <button type="submit" id="search_btn" class="btn btn-default">Submit</button>
                </form>
                <ul class="nav navbar-nav navbar-right"></ul>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
    <div class="container">
        <div class="starter-template">
            <h1>牛人网接口帮助文档</h1>
        </div>
    </div>
    <script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
    <div class="container-fluid" style="margin:0 50px;">
        <div class="row">
            <h2 id="user_info_jk">一.基础接口</h2>
            <!--1-1-->
            <div class="title" style="margin-left:20px;" id="one_one" name="one_one">
                <h3>1-1 登录</h3>
                <P>
                    接口地址：
                    <ol class="breadcrumb">
                        <li class="active"><strong>UserApi</strong></li>
                        <li class="active"><strong>Login</strong></li>
                    </ol>
                </P>
                <p>参数：</p>
                <table class="table table-bordered table-condensed">
                    <tr>
                        <td>
                            <strong>username</strong>(用户名)
                        </td>
                        <td>
                            <strong>password</strong>(密码)
                        </td>
                    </tr>
                </table>
                <p>返回结果：</p>
                <div class="panel-group" id="1-1-accordion">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h4 class="panel-title">
                                <a data-toggle="collapse" data-parent="#1-1-accordion" href="#one_one_suceess">
                                    提交成功
                                </a>
                                (Statu:ok)
                            </h4>
                        </div>
                        <div id="one_one_suceess" class="panel-collapse collapse in">
                            <div class="panel-body">
                                <p>Data返回数据</p>
                                <table class="table table-bordered table-condensed">
                                    <tr>
                                        <td>
                                            <strong>ID</strong>(用户id)
                                        </td>
                                        <td>
                                            <strong>UserName</strong>(用户名)
                                        </td>
                                        <td>
                                            <strong>Password</strong>(密码)
                                        </td>
                                        <td>
                                            <strong>RealName</strong>(真实姓名)
                                        </td>
                                        <td>
                                            <strong>Phone</strong>(手机)
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <strong>Weibo</strong>(微博)
                                        </td>
                                        <td>
                                            <strong>Job</strong>(工作)
                                        </td>
                                        <td>
                                            <strong>Description</strong>(个人简介)
                                        </td>
                                        <td>
                                            <strong>City</strong>(城市)
                                        </td>
                                        <td>
                                            <strong>District</strong>(区县)
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <strong>Town</strong>(乡镇)
                                        </td>
                                        <td>
                                            <strong>Address</strong>(地址)
                                        </td>
                                        <td>
                                            <strong>Picture</strong>(头像)
                                        </td>
                                        <td>
                                            <strong>Email</strong>(电子邮件)
                                        </td>
                                        <td>
                                            <strong>QQ</strong>(QQ)
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <strong>SexAsInt</strong>(性别编号)(0为女，1为男)
                                        </td>
                                        <td>
                                            <strong>Birthday</strong>(生日)
                                        </td>
                                        <td>
                                            <strong>Integration</strong>(积分)
                                        </td>
                                        <td>
                                            <strong>Money</strong>(金币)
                                        </td>
                                        <td>
                                            <strong>WhatApp</strong>(微信)
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <strong>PV</strong>(总访问量)
                                        </td>
                                        <td>
                                            <strong>TodayPV</strong>(今日访问量)
                                        </td>
                                        <td>
                                            <strong>Ups</strong>(顶)
                                        </td>
                                        <td>
                                            <strong>Downs</strong>(踩)
                                        </td>
                                        <td>
                                            <strong>AddTime</strong>(注册时间)
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <strong>LastLogin</strong>(上次登录时间)
                                        </td>
                                        <td>
                                            <strong>UserGroupID</strong>(牛棚ID)
                                        </td>
                                        <td>
                                            <strong>Priority</strong>(优先级)
                                        </td>
                                        <td>
                                            <strong>IsVerified</strong>(是否通过审核)
                                        </td>
                                        <td>
                                            <strong>IsShow</strong>(是否展示)
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            <h4 class="panel-title">
                                <a data-toggle="collapse" data-parent="#1-1-accordion" href="#one_one_failed">
                                    提交失败
                                </a>
                                (Statu:err)
                            </h4>
                        </div>
                        <div id="one_one_failed" class="panel-collapse collapse">
                            <div class="panel-body">
                                <p>Msg返回数据</p>
                                <table class="table table-bordered table-condensed">
                                    <tr>
                                        <td>
                                            登录操作出现错误
                                        </td>
                                        <td>
                                             
                                        </td>
                                    </tr>
                                </table>

                            </div>
                        </div>
                    </div>
                </div>
                <form class="form-inline">
                    <strong>测试：</strong>
                    <div class="form-group">
                        <label class="sr-only" for="exampleInputAmount">Amount (in dollars)</label>
                        <div class="input-group">
                            <div class="input-group-addon">用户名</div>
                            <input type="text" class="form-control" id="1-1-username" value="fanfzj">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="input-group">
                            <div class="input-group-addon">密码</div>
                            <input type="text" class="form-control" id="1-1-password" value="6yhn6yhn">
                        </div>
                    </div>
                    <button type="button" id="1-1-sumbit" class="btn btn-primary">提交</button>
                </form>
                <p id="1-1-alert"></p>
            </div>
            <!--学生注册-->
            <script>
                $("#1-1-sumbit").click(function () {
                    $("#1-1-sumbit").val("提交中。。");
                    $.ajax({
                        type: "post",
                        url: "/UserApi/Login",
                        data: {
                            username: $("#1-1-username").val(),
                            password: $("#1-1-password").val()
                        },
                        async: false,
                        dataType: "json",
                        success: function (data) {
                            if (data.Statu == "ok") {
                                $("#1-1-alert").empty();
                                $("#1-1-sumbit").val("提交完成");
                                $("#1-1-alert").html(JSON.stringify(data.Data));
                            }
                            else {
                                $("#1-1-alert").empty();
                                $("#1-1-sumbit").val("提交失败");
                                $("#1-1-alert").html("<strong>Msg:</strong>" + data.Msg);
                            }

                        },
                        error: function (data) {
                            $("#1-1-alert").empty();
                            $("#1-1-sumbit").val("提交失败");
                            $("#1-1-alert").html("网络问题");

                        }
                    });

                });
            </script>
        </div>
    </div>



        <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
        <script src="~/Scripts/bootstrap.min.js"></script>

       
</body>
</html>